//----------------------------------------------------------------------------
// M A R I T I M E  R E S E A R C H  I N S T I T U T E  N E T H E R L A N D S
//----------------------------------------------------------------------------
// Copyright (C) 2011 - MARIN - All rights reserved - http://www.marin.nl
//----------------------------------------------------------------------------
// Program    : mermaid
// Module     : vbm
// File       : CG.h
// Author     : M.A. de Jong
//----------------------------------------------------------------------------

#ifndef CG_H
#define	CG_H

#include "../../defines.h"
#include "../../Array2D.h"

#ifdef	__cplusplus
extern "C" {
#endif

    void setup(Array2D<REAL> *pmatC,
               Array2D<REAL> *pmatS,
               Array2D<REAL> *pmatW,
               int Nx1, int Nx2,
               REAL tolerance);
    void start(Array2D<REAL> *pB,
               Array2D<REAL> *pX);
    void clean();

#ifdef	__cplusplus
}
#endif

#endif	//CG_H

